package cn.com.zcode.core.dao;

import java.util.List;
import java.util.Map;

import cn.com.zcode.core.model.BaseModelSupport;

public interface BaseDao {
	public int update(String key, Map<String, Object> map);

	public <M extends BaseModelSupport> M add(String key, M t);

	public <M extends BaseModelSupport> M get(String key, Object pro);

	public <M extends BaseModelSupport> List<M> list(String key);

	public <M extends BaseModelSupport> List<M> list(String key, Object pro);

}
